package com.ruoyi.system.dto;

import com.ruoyi.common.core.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TransferSubmitDto extends BaseDto {
    @ApiModelProperty("金额")
    @NotNull(message = "金额不能为空")
    @DecimalMin(value  ="0.01",message = "金额不能小于0.01")
    private BigDecimal money;
    @ApiModelProperty("接收找账号")
    @NotBlank(message = "对方账号不能不为空")
    private String username;
    @ApiModelProperty("谷歌验证码")
    @NotBlank(message = "谷歌验证码不能不为空")
    private String code;






}
